package com.s.rpclog;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.s.remotelog.RLog;

public class MainActivity extends AppCompatActivity {

    // Used to load the 'native-lib' library on application startup.

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        // Example of a call to a native method
        TextView tv = findViewById(R.id.sample_text);


        tv.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                RLog.enableRemoteLog();
                RLog.startLogging(MainActivity.this, "sound_hub", "123456789");

                for (int i = 0; i < 5; ++i) {
                    RLog.d("RLog", "Java, index ; " + i);
                }
            }
        });

    }


}
